package com.jwds.digital.bios.business.core.infrastructure.entity.dispatch;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jwds.tdc.framework.database.lib.BaseEntity;

import java.util.List;

/**
 * 规则配置
 *
 * @author 林柏云
 * @date 2024-10-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("dispatch_configurat")
public class DispatchConfigurat extends BaseEntity<Long> {


    /**
    * 排序顺序
    */
    @TableField("sort_order")
    private Integer sortOrder;


    /**
    * 料棚/料仓编码
    */
    @TableField("group_code")
    private String groupCode;


    /**
    * 扣分
    */
    @TableField("deduct_points")
    private String deductPoints;


    /**
    * 料棚/料仓规则备注信息
    */
    @TableField("remark")
    private String remark;


    /**
    * 规则被执行的次数
    */
    @TableField("execution_count")
    private Integer executionCount;


    /**
    * 规则编码
    */
    @TableField("rule_code")
    private String ruleCode;

    /***********扩展字段***************/

    /**
     * 规则内容
     */
    @TableField(exist = false)
    private List<DispatchRule> dispatchRuleList;
}
